package com.mzy.olddate.demo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author Ives
 * * @date 2021/9/6
 */
public class Demo5 {
  public static void main(String[] args) {
    String dd ="010500,010500100060,010500100,010500210010,010500190,010500190010,010500180140,010500140,010500140030,010500140010,010500140020,010500140040,010500010,010500080,010500100050,010500100020,010500100040,010500110010,010500110020,010500120,010500120010,010500120020,010500130,010500130010,010500130020,010500130030,010500180050,010500190020,010500180,010500180040,010500020,010500090,010500070,010500180070,010500180100,010500180120,010500160,010500160050,010500100010,010500100030,010500110,010500120030,010500120040,010500120050,010500130040,010500130050,010500210,010500200,010500020010,010500180130,010500180060,010500180090,010500180080,010500180110";

    String[] split = dd.split(",");
    List<String> strings = Arrays.asList(split);

    ArrayList<String> list = new ArrayList<>();

    for (String item:
         strings) {

      String update ="\"update CMS_PAGE_COLUMN_SIGN_5G set WEB_SITE_CODE='XXYY' where COLUMN_CODE='AABB';";
      String aabb = update.replaceAll("AABB", item);
      String xxyy = aabb.replaceAll("XXYY", "biz");
      list.add(xxyy);
    }

    for (String item:list
    ) {
      System.out.println(item);
    }
  }
}
